package com.wyj.wuliwuli.entity;

import lombok.Data;

import javax.persistence.*;

/**
 * 视频实体类
 */
@Data
@Entity
@Table(name = "wuli_video")
public class WuliVideo extends BaseEntity {

    @ManyToOne
    @JoinColumn(name = "author_id", columnDefinition = "bigint(20) COMMENT '作者ID'")
    private WuliUser author;

    @Column(columnDefinition="varchar(255) COMMENT '视频主题'")
    private String title;

    @Column(columnDefinition="varchar(500) COMMENT '文件路径'")
    private String path;

    /**
     * @see com.wyj.wuliwuli.common.CommonValue.VideoType
     */
    @Column(columnDefinition="varchar(50) COMMENT '视频类型'")
    private String type;

    @Column(columnDefinition="bigint(11) COMMENT '点赞数'")
    private Long likeCount;

    @Column(columnDefinition="varchar(255) COMMENT '视频封面'")
    private String cover;

    /**
     * 0 未审核
     * 1 审核通过
     * 2 审核拒绝
     */
    @Column(columnDefinition="int(10) COMMENT '审核状态'")
    private Integer auditStatus;


}
